<?php /* Smarty version Smarty-3.1.12, created on 2013-04-25 04:31:59
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/match/matchfound_player.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10258487645108087fd05ed8-21067161%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c99363fce3b74025ebdc496b3d73d1450ce027af' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/match/matchfound_player.tpl',
      1 => 1366857116,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10258487645108087fd05ed8-21067161',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5108087fd37149_50423382',
  'variables' => 
  array (
    'steamID' => 0,
    'v' => 0,
    'data' => 0,
    'highlight' => 0,
    'hostBG' => 0,
    'hostIcon' => 0,
    'matchSubmitted' => 0,
    'teamID' => 0,
    'teamWonID' => 0,
    'textClass' => 0,
    'eloChange' => 0,
    'matchAlreadyCanceled' => 0,
    'userVotesUser' => 0,
    'besucher' => 0,
    'userVotes' => 0,
    'userVotesAllowed' => 0,
    'voteTypes' => 0,
    'vpv' => 0,
    'vnv' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5108087fd37149_50423382')) {function content_5108087fd37149_50423382($_smarty_tpl) {?><?php if ($_smarty_tpl->tpl_vars['steamID']->value==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
	<?php $_smarty_tpl->tpl_vars["highlight"] = new Smarty_variable("background-color:#D9EDF7;", null, 0);?>
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["highlight"] = new Smarty_variable('', null, 0);?>
<?php }?>


<?php if ($_smarty_tpl->tpl_vars['v']->value['Leaver']==1){?>
	<?php $_smarty_tpl->tpl_vars["highlight"] = new Smarty_variable("background-color:#fcf8e3;", null, 0);?>
<?php }elseif($_smarty_tpl->tpl_vars['steamID']->value!=$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
	<?php $_smarty_tpl->tpl_vars["highlight"] = new Smarty_variable('', null, 0);?>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['data']->value['matchdetails']['host']==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
	<?php $_smarty_tpl->tpl_vars["hostBG"] = new Smarty_variable("background-color: #dff0d8;", null, 0);?>
	<?php $_smarty_tpl->tpl_vars["hostIcon"] = new Smarty_variable('<span class="t" title="Host - have to create the Lobby"><i class="icon-home"></i></span>', null, 0);?>
<?php }else{ ?>
	<?php $_smarty_tpl->tpl_vars["hostBG"] = new Smarty_variable('', null, 0);?>
	<?php $_smarty_tpl->tpl_vars["hostIcon"] = new Smarty_variable('', null, 0);?>
<?php }?>

<div class="row-fluid " style="line-height:26px;<?php echo $_smarty_tpl->tpl_vars['highlight']->value;?>
<?php echo $_smarty_tpl->tpl_vars['hostBG']->value;?>
">
	<div class="span1" >
		<img alt="Avatar" src="<?php echo $_smarty_tpl->tpl_vars['v']->value['Avatar'];?>
" width="25" height="25">
	</div>
	<div class="span5">
		<span><?php echo $_smarty_tpl->getSubTemplate ("prototypes/creditBasedName.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('name'=>$_smarty_tpl->tpl_vars['v']->value['Name'],'creditValue'=>$_smarty_tpl->tpl_vars['v']->value['Credits']), 0);?>
</span>&nbsp;<?php echo $_smarty_tpl->tpl_vars['hostIcon']->value;?>
<?php echo $_smarty_tpl->getSubTemplate ("prototypes/leaverIcon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('leaver'=>$_smarty_tpl->tpl_vars['v']->value['Leaver'],'width'=>16), 0);?>

		<div class="btn-group pull-right" style="padding-top:4px;">
				  <a class="btn dropdown-toggle btn-mini" data-toggle="dropdown" href="#">
				    <i class="icon-eye-open"></i>
				    <span class="caret"></span>
				  </a>
				  <ul class="dropdown-menu">
				   <li><a href="profile.php?ID=<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" target="_blank"><i class="icon-user"></i> show Profile</a></li>
				    <li class="divider"></li>
				    <li><a href="https://dotabuff.com/players/<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" target="_blank">show DotaBuff-Profile</a></li>
				    <li><a href="<?php echo $_smarty_tpl->tpl_vars['v']->value['ProfileURL'];?>
ProfileURL" target="_blank">show Steam-Profile</a></li>
				  </ul>
		</div>
	</div>
	<div class="span3" style="white-space:nowrap;">
		<?php if ($_smarty_tpl->tpl_vars['matchSubmitted']->value){?>

			<?php if ($_smarty_tpl->tpl_vars['teamID']->value==$_smarty_tpl->tpl_vars['teamWonID']->value){?>
				<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable("success", null, 0);?>		
			<?php }else{ ?>
				<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable("error", null, 0);?>
			<?php }?>
			
			<?php $_smarty_tpl->tpl_vars["eloChange"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['EloChange'], null, 0);?>
	
			
			
			
		<span class="label"><?php echo $_smarty_tpl->tpl_vars['v']->value['Elo'];?>
</span>(<span class="text-<?php echo $_smarty_tpl->tpl_vars['textClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['eloChange']->value;?>
</span>)&nbsp;
		<a href="help.php#winLoseElo" target="_blank" class="t" title="FAQ: How is the WinElo/LoseElo calculated?"><i class="icon-question-sign"></i></a>
		
		<?php }elseif($_smarty_tpl->tpl_vars['matchAlreadyCanceled']->value){?>
			<?php if ($_smarty_tpl->tpl_vars['v']->value['EloChange']==''){?>
				<?php $_smarty_tpl->tpl_vars["eloChange"] = new Smarty_variable("0", null, 0);?>
			<?php }else{ ?>
				<?php $_smarty_tpl->tpl_vars["textClass"] = new Smarty_variable("error", null, 0);?>
				<?php $_smarty_tpl->tpl_vars["eloChange"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['EloChange'], null, 0);?>
			<?php }?>
			
			
			<span class="label"><?php echo $_smarty_tpl->tpl_vars['v']->value['Elo'];?>
</span>(<span class="text-<?php echo $_smarty_tpl->tpl_vars['textClass']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['eloChange']->value;?>
</span>)&nbsp;
			<a href="help.php#winLoseElo" target="_blank" class="t" title="FAQ: How is the WinElo/LoseElo calculated?"><i class="icon-question-sign"></i></a>
		
		 
		<?php }else{ ?>
		<span class="label"><?php echo $_smarty_tpl->tpl_vars['v']->value['Elo'];?>
</span>(<span class="text-success"><?php echo $_smarty_tpl->tpl_vars['v']->value['WinElo'];?>
</span>/<span class="text-error"><?php echo $_smarty_tpl->tpl_vars['v']->value['LoseElo'];?>
</span>)&nbsp;
		<a href="help.php#winLoseElo" target="_blank" class="t" title="FAQ: How is the WinElo/LoseElo calculated?"><i class="icon-question-sign"></i></a>
		<?php }?>
		
	</div>
	<div class="span3">
	<?php if (count($_smarty_tpl->tpl_vars['userVotesUser']->value)>0&&is_array($_smarty_tpl->tpl_vars['userVotesUser']->value)){?>
		<?php if (in_array($_smarty_tpl->tpl_vars['v']->value['SteamID'],$_smarty_tpl->tpl_vars['userVotesUser']->value)||$_smarty_tpl->tpl_vars['besucher']->value==true){?>
		Votes: <span class="text-success t" title="positive Votes"><?php echo sprintf("%d",$_smarty_tpl->tpl_vars['userVotes']->value[$_smarty_tpl->tpl_vars['v']->value['SteamID']]['posCounts']);?>
</span> - <span class="text-error t" title="negative Votes"><?php echo sprintf("%d",$_smarty_tpl->tpl_vars['userVotes']->value[$_smarty_tpl->tpl_vars['v']->value['SteamID']]['negCounts']);?>
</span>
		<?php }else{ ?>
			
			<?php if ($_smarty_tpl->tpl_vars['v']->value['SteamID']!=$_smarty_tpl->tpl_vars['steamID']->value){?>
				<div class="voteSection" style="display:inline">
					<?php if ($_smarty_tpl->tpl_vars['userVotesAllowed']->value['upvotesAllowed']){?>
						<div class="btn-group voteButtonGroup">
						  <button class="btn btn-mini btn-success" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="1" data-value="7" data-label="Upvote"><i class="icon-thumbs-up t"></i>&nbsp;</button>
						  <button class="btn btn dropdown-toggle btn-success" data-toggle="dropdown">
						    <span class="caret"></span>
						  </button>
						  <ul class="dropdown-menu good">
						  		<?php if (count($_smarty_tpl->tpl_vars['voteTypes']->value)>0&&is_array($_smarty_tpl->tpl_vars['voteTypes']->value)){?>
									<?php  $_smarty_tpl->tpl_vars['vpv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vpv']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['voteTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vpv']->key => $_smarty_tpl->tpl_vars['vpv']->value){
$_smarty_tpl->tpl_vars['vpv']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['vpv']->key;
?>
										<?php if ($_smarty_tpl->tpl_vars['vpv']->value['Type']=="1"){?>
											<li><a href="javascript:void(0);" data-value="<?php echo $_smarty_tpl->tpl_vars['vpv']->value['VoteTypeID'];?>
" data-name="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="1"><?php echo $_smarty_tpl->tpl_vars['vpv']->value['Name'];?>
</a></li>
										<?php }?>
								    <?php } ?>
								<?php }?>
						  </ul>
						</div>
					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['userVotesAllowed']->value['downvotesAllowed']){?>
						<div class="btn-group voteButtonGroup">
						  <button class="btn btn-mini btn-danger" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="-1" data-value="8" data-label="Downvote"><i class="icon-thumbs-down"></i>&nbsp;</button>
						  <button class="btn btn dropdown-toggle btn-danger" data-toggle="dropdown">
						    <span class="caret"></span>
						  </button>
						  <ul class="dropdown-menu bad">
						     <?php if (count($_smarty_tpl->tpl_vars['voteTypes']->value)>0&&is_array($_smarty_tpl->tpl_vars['voteTypes']->value)){?>
									<?php  $_smarty_tpl->tpl_vars['vnv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vnv']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['voteTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vnv']->key => $_smarty_tpl->tpl_vars['vnv']->value){
$_smarty_tpl->tpl_vars['vnv']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['vnv']->key;
?>
										<?php if ($_smarty_tpl->tpl_vars['vnv']->value['Type']=="-1"){?>
											<li><a href="javascript:void(0);" data-value="<?php echo $_smarty_tpl->tpl_vars['vnv']->value['VoteTypeID'];?>
" data-name="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="-1"><?php echo $_smarty_tpl->tpl_vars['vnv']->value['Name'];?>
</a></li>
										<?php }?>
								    <?php } ?>
								<?php }?>
						  </ul>
						</div>
					<?php }?>
				</div>
			<?php }?>
		
		<?php }?>
	<?php }else{ ?>
		<?php if ($_smarty_tpl->tpl_vars['besucher']->value==true){?>
			Votes: <span class="text-success t" title="positive Votes"><?php echo sprintf("%d",$_smarty_tpl->tpl_vars['userVotes']->value[$_smarty_tpl->tpl_vars['v']->value['SteamID']]['posCounts']);?>
</span> - <span class="text-error t" title="negative Votes"><?php echo sprintf("%d",$_smarty_tpl->tpl_vars['userVotes']->value[$_smarty_tpl->tpl_vars['v']->value['SteamID']]['negCounts']);?>
</span>
		<?php }else{ ?>
			<?php if ($_smarty_tpl->tpl_vars['v']->value['SteamID']!=$_smarty_tpl->tpl_vars['steamID']->value){?>
			<div class="voteSection" style="display:inline" >
					<?php if ($_smarty_tpl->tpl_vars['userVotesAllowed']->value['upvotesAllowed']){?>
						<div class="btn-group voteButtonGroup">
						  <button class="btn btn-mini btn-success" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="1" data-value="7" data-label="Upvote"><i class="icon-thumbs-up"></i>&nbsp;</button>
						  <button class="btn btn dropdown-toggle btn-success" data-toggle="dropdown">
						    <span class="caret"></span>
						  </button>
						  <ul class="dropdown-menu good">
						  		<?php if (count($_smarty_tpl->tpl_vars['voteTypes']->value)>0&&is_array($_smarty_tpl->tpl_vars['voteTypes']->value)){?>
									<?php  $_smarty_tpl->tpl_vars['vpv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vpv']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['voteTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vpv']->key => $_smarty_tpl->tpl_vars['vpv']->value){
$_smarty_tpl->tpl_vars['vpv']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['vpv']->key;
?>
										<?php if ($_smarty_tpl->tpl_vars['vpv']->value['Type']=="1"){?>
											<li><a href="javascript:void(0);" data-value="<?php echo $_smarty_tpl->tpl_vars['vpv']->value['VoteTypeID'];?>
" data-name="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="1"><?php echo $_smarty_tpl->tpl_vars['vpv']->value['Name'];?>
</a></li>
										<?php }?>
								    <?php } ?>
								<?php }?>
						  </ul>
						</div>
					<?php }?>
					<?php if ($_smarty_tpl->tpl_vars['userVotesAllowed']->value['downvotesAllowed']){?>
						<div class="btn-group voteButtonGroup">
						  <button class="btn btn-mini btn-danger" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="-1" data-value="8" data-label="Downvote"><i class="icon-thumbs-down"></i>&nbsp;</button>
						  <button class="btn btn dropdown-toggle btn-danger" data-toggle="dropdown">
						    <span class="caret"></span>
						  </button>
						  <ul class="dropdown-menu bad">
						     <?php if (count($_smarty_tpl->tpl_vars['voteTypes']->value)>0&&is_array($_smarty_tpl->tpl_vars['voteTypes']->value)){?>
									<?php  $_smarty_tpl->tpl_vars['vnv'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['vnv']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['voteTypes']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['vnv']->key => $_smarty_tpl->tpl_vars['vnv']->value){
$_smarty_tpl->tpl_vars['vnv']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['vnv']->key;
?>
										<?php if ($_smarty_tpl->tpl_vars['vnv']->value['Type']=="-1"){?>
											<li><a href="javascript:void(0);" data-value="<?php echo $_smarty_tpl->tpl_vars['vnv']->value['VoteTypeID'];?>
" data-name="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" data-type="-1"><?php echo $_smarty_tpl->tpl_vars['vnv']->value['Name'];?>
</a></li>
										<?php }?>
								    <?php } ?>
								<?php }?>
						  </ul>
						</div>
					<?php }?>
					
				</div>
			<?php }?>
		<?php }?>
		
	<?php }?>
	</div>
</div>


	<?php }} ?>